<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Nabu-asr: nabu.neuralnetworks.models.ed_encoders.hotstart_encoder.HotstartEncoder Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Nabu-asr
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacenabu.html">nabu</a></li><li class="navelem"><b>neuralnetworks</b></li><li class="navelem"><b>models</b></li><li class="navelem"><b>ed_encoders</b></li><li class="navelem"><b>hotstart_encoder</b></li><li class="navelem"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1hotstart__encoder_1_1HotstartEncoder.html">HotstartEncoder</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1hotstart__encoder_1_1HotstartEncoder-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">nabu.neuralnetworks.models.ed_encoders.hotstart_encoder.HotstartEncoder Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>a listener object  
 <a href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1hotstart__encoder_1_1HotstartEncoder.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for nabu.neuralnetworks.models.ed_encoders.hotstart_encoder.HotstartEncoder:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1hotstart__encoder_1_1HotstartEncoder.png" usemap="#nabu.neuralnetworks.models.ed_5Fencoders.hotstart_5Fencoder.HotstartEncoder_map" alt=""/>
  <map id="nabu.neuralnetworks.models.ed_5Fencoders.hotstart_5Fencoder.HotstartEncoder_map" name="nabu.neuralnetworks.models.ed_encoders.hotstart_encoder.HotstartEncoder_map">
<area href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder.html" title="a general encoder for an encoder decoder system " alt="nabu.neuralnetworks.models.ed_encoders.ed_encoder.EDEncoder" shape="rect" coords="0,56,445,80"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae60b7a9b9eb6db790c5debd5486915fd"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1hotstart__encoder_1_1HotstartEncoder.html#ae60b7a9b9eb6db790c5debd5486915fd">__init__</a> (self, conf, constraint, name=None)</td></tr>
<tr class="memdesc:ae60b7a9b9eb6db790c5debd5486915fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructor  <a href="#ae60b7a9b9eb6db790c5debd5486915fd">More...</a><br /></td></tr>
<tr class="separator:ae60b7a9b9eb6db790c5debd5486915fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6f9f2bf4217851312fd4efcab484847"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1hotstart__encoder_1_1HotstartEncoder.html#ad6f9f2bf4217851312fd4efcab484847">encode</a> (self, inputs, input_seq_length, is_training)</td></tr>
<tr class="memdesc:ad6f9f2bf4217851312fd4efcab484847"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the variables and do the forward computation.  <a href="#ad6f9f2bf4217851312fd4efcab484847">More...</a><br /></td></tr>
<tr class="separator:ad6f9f2bf4217851312fd4efcab484847"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder.html">nabu.neuralnetworks.models.ed_encoders.ed_encoder.EDEncoder</a></td></tr>
<tr class="memitem:ad44ffbd4c572feb1eda73533d02d6a86 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder.html#ad44ffbd4c572feb1eda73533d02d6a86">__init__</a> (self, conf, constraint, name=None)</td></tr>
<tr class="memdesc:ad44ffbd4c572feb1eda73533d02d6a86 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder.html" title="a general encoder for an encoder decoder system ">EDEncoder</a> constructor.  <a href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder.html#ad44ffbd4c572feb1eda73533d02d6a86">More...</a><br /></td></tr>
<tr class="separator:ad44ffbd4c572feb1eda73533d02d6a86 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13f504ef510ac3adb3f91b0883421430 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder.html#a13f504ef510ac3adb3f91b0883421430">__call__</a> (self, inputs, input_seq_length, is_training)</td></tr>
<tr class="memdesc:a13f504ef510ac3adb3f91b0883421430 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the variables and do the forward computation.  <a href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder.html#a13f504ef510ac3adb3f91b0883421430">More...</a><br /></td></tr>
<tr class="separator:a13f504ef510ac3adb3f91b0883421430 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3af46d9af2b84017905a00a00342f3a inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder.html#aa3af46d9af2b84017905a00a00342f3a">encode</a> (self, inputs, input_seq_length, is_training)</td></tr>
<tr class="memdesc:aa3af46d9af2b84017905a00a00342f3a inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create the variables and do the forward computation.  <a href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder.html#aa3af46d9af2b84017905a00a00342f3a">More...</a><br /></td></tr>
<tr class="separator:aa3af46d9af2b84017905a00a00342f3a inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b9ace4ff2f26b62b52f177898c8f442 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="memItemLeft" align="right" valign="top"><a id="a0b9ace4ff2f26b62b52f177898c8f442"></a>
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder.html#a0b9ace4ff2f26b62b52f177898c8f442">variables</a> (self)</td></tr>
<tr class="memdesc:a0b9ace4ff2f26b62b52f177898c8f442 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="mdescLeft">&#160;</td><td class="mdescRight">get a list of the models's variables <br /></td></tr>
<tr class="separator:a0b9ace4ff2f26b62b52f177898c8f442 inherit pub_methods_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a8f1fc664d1f409c8ccc85b561492c081"><td class="memItemLeft" align="right" valign="top"><a id="a8f1fc664d1f409c8ccc85b561492c081"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>wrapped</b></td></tr>
<tr class="separator:a8f1fc664d1f409c8ccc85b561492c081"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder.html">nabu.neuralnetworks.models.ed_encoders.ed_encoder.EDEncoder</a></td></tr>
<tr class="memitem:adc5e8235ce11ad1f485fd25c98a180b4 inherit pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="memItemLeft" align="right" valign="top"><a id="adc5e8235ce11ad1f485fd25c98a180b4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>conf</b></td></tr>
<tr class="separator:adc5e8235ce11ad1f485fd25c98a180b4 inherit pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ac3064be1dee02cce360ec60aced8a0 inherit pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="memItemLeft" align="right" valign="top"><a id="a4ac3064be1dee02cce360ec60aced8a0"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>scope</b></td></tr>
<tr class="separator:a4ac3064be1dee02cce360ec60aced8a0 inherit pub_attribs_classnabu_1_1neuralnetworks_1_1models_1_1ed__encoders_1_1ed__encoder_1_1EDEncoder"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>a listener object </p>
<p>transforms input features into a high level representation </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ae60b7a9b9eb6db790c5debd5486915fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae60b7a9b9eb6db790c5debd5486915fd">&sect;&nbsp;</a></span>__init__()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def nabu.neuralnetworks.models.ed_encoders.hotstart_encoder.HotstartEncoder.__init__ </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>conf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>constraint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>name</em> = <code>None</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>constructor </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">conf</td><td>the encoder configuration </td></tr>
    <tr><td class="paramname">name</td><td>the encoder name </td></tr>
    <tr><td class="paramname">constraint</td><td>the constraint for the variables </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ad6f9f2bf4217851312fd4efcab484847"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6f9f2bf4217851312fd4efcab484847">&sect;&nbsp;</a></span>encode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def nabu.neuralnetworks.models.ed_encoders.hotstart_encoder.HotstartEncoder.encode </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>input_seq_length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>is_training</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create the variables and do the forward computation. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">inputs</td><td>the inputs to the neural network, this is a dictionary of [batch_size x time x ...] tensors </td></tr>
    <tr><td class="paramname">input_seq_length</td><td>The sequence lengths of the input utterances, this is a dictionary of [batch_size] vectors </td></tr>
    <tr><td class="paramname">is_training</td><td>whether or not the network is in training mode</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><ul>
<li>the outputs of the encoder as a dictionary of [bath_size x time x ...] tensors</li>
<li>the sequence lengths of the outputs as a dictionary of [batch_size] tensors </li>
</ul>
</dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="hotstart__encoder_8py.html">hotstart_encoder.py</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
